php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#249816 - 06/09/03 07:08 PM Beta-[6.2] ExtraInfo 1.3
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1966
Loc: Sweden, Stockholm
Mod Name / Version: ExtraInfo 1.3 <br /> <br />Description: Shows the users Extra fields next to their posts, as well as an ICQ status indicator. <br /> <br />Working Under: UBB.Threads 6.2 <br /> <br />Mod Status: Beta <br /> <br />Any pre-requisites: None <br /> <br />Author(s): Gardener <br /> <br />Date: 06/09/03 <br /> <br />Credits: flyingcrow for coming up with the idea and pkassab for bullying me to update it =] <br /> <br />Files Altered: showflat.php, showthreaded.php, showflat.tmpl, showthreaded.tmpl, config.inc.php <br /> <br />New Files: None <br /> <br />Database Altered: No <br /> <br />Info/Instructions: This is just an update of the instructions to work with UBB.threads 6.2.3, no new functionality added. Please report any problems you might have and I'll try to fix them as soon as possible. I don't use this myself but I hope it works and that you might find it useful. If you have the MultipleSigs hack you will have to do some extra changes for it to work, please see the extra instructions at the end. <br /> <br />Changes in 1.3: Added the possibility to use the content of the fields directly in the templates, without the added description and br-tag. <br /> <br />Disclaimer: Please backup every file that you intend to modify. <br />If the modification modifies the database, it's a good idea to backup your database before doing so. <br /> <br />Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files. <br /> <br />


Attachments
83690-ExtraInfo-1_3.txt (72 downloads)



Edited by Gardener (06/14/03 10:29 PM)
_________________________
/Gardener | Complete list of my mods

Top
#249817 - 06/09/03 07:12 PM Re: Beta-[6.2] ExtraInfo 1.2 [Re: c0bra]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Thanks! <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#249818 - 06/09/03 07:15 PM Re: Beta-[6.2] ExtraInfo 1.2 [Re: Daine]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1966
Loc: Sweden, Stockholm
Well, I've been promising this for ages and I finally managed to remember to get it done. I'm trying to tie up some loose ends now that the semester is over and I have some time to get some things done.
_________________________
/Gardener | Complete list of my mods

Top
#249819 - 06/09/03 08:08 PM Re: Beta-[6.2] ExtraInfo 1.2 [Re: c0bra]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
<img src="/forum/images/graemlins/yay.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#249820 - 06/09/03 08:52 PM Re: Beta-[6.2] ExtraInfo 1.2 [Re: Daine]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
<img src="/forum/images/graemlins/waytogo.gif" alt="" />

Top
#249821 - 06/12/03 04:36 PM Re: Beta-[6.2] ExtraInfo 1.2 [Re: eslmix]
ericgtr Offline
Junior Member

Registered: 05/12/03
Posts: 1109
Nice mod Gardener, went off with out a hitch <img src="/forum/images/graemlins/waytogo.gif" alt="" />

Top
#249822 - 06/14/03 09:46 PM Re: Beta-[6.2] ExtraInfo 1.2 [Re: BlarC]
ericgtr Offline
Junior Member

Registered: 05/12/03
Posts: 1109
Garedener, it would be cool if people could launch a message from the users Extra info under their avatar. What if we were to add the:
Code:
 &lt;a href="aim:goim?screenname=screenname&amp;message=Are+you+there?"&gt;screenname&lt;/a&gt;  
to this line (3 in my case):
Code:
  $postrow[$i]['Extra3'] = ($userextra3) ? "{$config['extra3']}: {$userextra3}&lt;br /&gt;" : ""; 
and have it so it picks up the name variable where it says screenname. Do you think this is possible?

Top
#249823 - 06/14/03 10:00 PM Re: Beta-[6.2] ExtraInfo 1.2 [Re: BlarC]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1966
Loc: Sweden, Stockholm
Sure it is. Just change the line into this: <br /> <br />
Code:
 <br />$postrow[$i]['Extra3'] = ($userextra3) ? "{$config['extra3']}: &lt;a href=\"aim:goim?screenname={$userextra3}&amp;message=Are+you+there?\"&gt;{$userextra3}&lt;/a&gt;&lt;br /&gt;" : ""; <br />
<br /> <br />Now that I think of it, the content of the extra fields should be readable in the template without the extra stuff, so that you can do these things in the template yourself. I did it like this since I didn't want an empty entry if there isn't anything in the field, but giving the option to use both ways would be quite nice. I think I'll update the instructions...


Edited by Gardener (06/14/03 11:39 PM)
_________________________
/Gardener | Complete list of my mods

Top
#249824 - 06/14/03 10:30 PM Re: Beta-[6.2] ExtraInfo 1.3 [Re: c0bra]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1966
Loc: Sweden, Stockholm
Updated the instructions to add plain variables with only the content of the fields for those who want to customize the look of this in their template. See the first post of the thread for these instructions.
_________________________
/Gardener | Complete list of my mods

Top
#249825 - 06/14/03 11:31 PM Re: Beta-[6.2] ExtraInfo 1.3 [Re: c0bra]
ericgtr Offline
Junior Member

Registered: 05/12/03
Posts: 1109
Okay, I tried this and got
Code:
Parse error: parse error, unexpected T_STRING in /home/vhfansco/public_html/boards/showflat.php on line 766<br />
<br />Also if we can make it so we can use this image []http://www.vhfans.com/boards/images/aim-icon.gif[/] this will be a full AIM addon <img src="/forum/images/graemlins/smirk.gif" alt="" />

Top
#249826 - 06/14/03 11:46 PM Re: Beta-[6.2] ExtraInfo 1.3 [Re: BlarC]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1966
Loc: Sweden, Stockholm
Sorry about that, I didn't check the code and missed some escape characters, my original post is updated.<br /><br />Here is a version using the AIM icon as well:<br />
Code:
<br />$postrow[$i]['Extra3'] = ($userextra3) ? "{$config['extra3']}: &lt;a href=\"aim:goim?screenname={$userextra3}&amp;message=Are+you+there?\"&gt;&lt;img src=\"{$config['images']}/aim-icon.gif\" alt=\"{$userextra3}\" title=\"{$userextra3}\" border=\"0\" /&gt;&lt;/a&gt;&lt;br /&gt;" : "";<br />
<br />This should work, provided that the aim icon is in your standard threads images directory.<br /><br />If you don't want the initial description, use this instead:<br />
Code:
<br />$postrow[$i]['Extra3'] = ($userextra3) ? "&lt;a href=\"aim:goim?screenname={$userextra3}&amp;message=Are+you+there?\"&gt;&lt;img src=\"{$config['images']}/aim-icon.gif\" alt=\"{$userextra3}\" title=\"{$userextra3}\" border=\"0\" /&gt;&lt;/a&gt;&lt;br /&gt;" : "";<br />
_________________________
/Gardener | Complete list of my mods

Top
#249827 - 06/15/03 12:15 AM Re: Beta-[6.2] ExtraInfo 1.3 [Re: c0bra]
ericgtr Offline
Junior Member

Registered: 05/12/03
Posts: 1109
Excellent, works like a charm. Thanks for coming up with the AIM mod <img src="/forum/images/graemlins/smile.gif" alt="" /> The link is in my sig if anywant wants to check it out. I just did a google search for aim icon and there are several to choose from.

Top
#249828 - 06/15/03 12:26 AM Re: Beta-[6.2] ExtraInfo 1.3 [Re: BlarC]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1966
Loc: Sweden, Stockholm
That's good to hear, looks good on your site as well!<br /><br />I'm thinking of doing a mod to use all of the most popular messengers, shouldn't be too hard. I'm not sure if it would be best to have separate fields for each program, or just one field and let the user choose which one it is. There are pros and cons with both alternatives.
_________________________
/Gardener | Complete list of my mods

Top
#249829 - 06/15/03 04:04 AM Re: Beta-[6.2] ExtraInfo 1.3 [Re: c0bra]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
[]Gardener said:<br />I'm thinking of doing a mod to use all of the most popular messengers, shouldn't be too hard. I'm not sure if it would be best to have separate fields for each program, or just one field and let the user choose which one it is. There are pros and cons with both alternatives. [/]<br /><br />Which ever you choose, I am sure it would be popular - thanks for the code.
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#249830 - 06/15/03 10:23 AM Re: Beta-[6.2] ExtraInfo 1.3 [Re: Gorlum]
ericgtr Offline
Junior Member

Registered: 05/12/03
Posts: 1109
Here is the code for Yahoo (yim) if anyone is interested, it will also show the online (smilie) indicator<br />
Code:
	 $postrow[$i]['Extra4'] = ($userextra4) ? "&lt;a href=\"http://edit.yahoo.com/config/send_webmesg?.target={$userextra4}\"target=\"_blank\"&gt;&lt;img src=\"{$config['images']}/yahoo-icon.gif\" alt=\"{$userextra4}\" title=\"{$userextra4}\" border=\"0\" /&gt;&lt;/a&gt; &lt;img SRC=\"http://opi.yahoo.com/online?u={$userextra4}&amp;m=g&amp;t=0\" BORDER=0 alt=\"\"&gt;&lt;br /&gt;" : ""; 
<br /><br />Also I can't seem to get any output from $postrow5, even without a mod on it?

Top
#249831 - 06/15/03 10:30 AM Re: Beta-[6.2] ExtraInfo 1.3 [Re: BlarC]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1966
Loc: Sweden, Stockholm
Thanks for the code of Yahoo, I'll get these added in somehow, either in this mod or in a separate one with some more options.<br /><br />[]Also I can't seem to get any output from $postrow5, even without a mod on it?[/]<br /><br />Do you mean that you can't use $postrow[$i]['Extra5'] in your showflat template? It should work, I can't see anything wrong with it at least.
_________________________
/Gardener | Complete list of my mods

Top
#249832 - 06/15/03 10:42 AM Re: Beta-[6.2] ExtraInfo 1.3 [Re: c0bra]
ericgtr Offline
Junior Member

Registered: 05/12/03
Posts: 1109
Correct, for some reason when I assign it a name it still doesn't display under the icon. I suppose I could have missed something while installing the mod, I will have to double check []http://www.vhfans.com/boards/images/graemlins/headscratch.gif[/] <br /><br />I wanted to also add one for MSN but I can't find code for it anywhere, other message boards that have a "msn" indicator takes them to their profile. I have a feeling there isn't anything available for it.<br /><br />Also on a side note, I pulled the <br /> out from the end of $postrow 3 so I could have AIM and YIM on one row.

Top
#249833 - 06/15/03 11:04 AM Re: Beta-[6.2] ExtraInfo 1.3 [Re: BlarC]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1966
Loc: Sweden, Stockholm
Do you have the field turned on in threads config file? If it isn't, it won't display.<br /><br />Also, since you have several messengers, I'm wondering if you have seen any people who have entered more than one of them?
_________________________
/Gardener | Complete list of my mods

Top
#249834 - 06/15/03 11:10 AM Re: Beta-[6.2] ExtraInfo 1.3 [Re: c0bra]
ericgtr Offline
Junior Member

Registered: 05/12/03
Posts: 1109
Yes I have it set as Yahoo and it shows up in My Home as well. I personally am the only one who has put more than one in so far on my site.

Top
#249835 - 06/15/03 11:22 AM Re: Beta-[6.2] ExtraInfo 1.3 [Re: BlarC]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1966
Loc: Sweden, Stockholm
I can take a look at the files for you if you want to see if I can find the problem. All extra fields show up at my test site, and from what I can see I haven't missed anything in the instructions.
_________________________
/Gardener | Complete list of my mods

Top
Page 1 of 2 1 2 >



Moderator:  Ian_W 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks